import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
//  sessionStorage localStorage cookie
// 获取token localStorage.getItem(key)
export function getToken() {
  return Cookies.get(TokenKey)
}
// 设置token localStorage.setItem(k, v)
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除token localStorage.removeItem(k)
export function removeToken() {
  return Cookies.remove(TokenKey)
}
